package be.ipl.diapero.testDomaine;

import static org.junit.Assert.*;

import org.junit.Before;
import org.junit.Test;

import be.ipl.diapero.domaine.Action;
import be.ipl.diapero.domaine.Action.Diablotin;

public class TestAction {

	private Action action ;

	@Before
	public void setUp() throws Exception {
	   this.action = new Action(2, Diablotin.NOIR);
	}

	@Test
	public void testConstructeur() {
		assertNotNull(action);
	}
	
	@Test
	public void testGetDiablotin() {
		assertEquals(Diablotin.NOIR, this.action.getDiablotin());
	}
	
	@Test
	public void testGetNbreGemmes() {
		assertEquals(2, this.action.getNbrDeGemmes());
	}
	

}
